package com.yx.louti.login.model;

import com.yx.louti.login.enums.LoginType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Size;

@Data
@Validated
@ApiModel(value = "登录表单", description = "登录表单")
public class LoginUserModel {

    @ApiModelProperty("登陆账号 (仅供账号登录使用)")
    @Size(min = 1, max = 20)
    private String account;

    @ApiModelProperty("密码 (仅供账号登录使用)")
    @Size(min = 17, max = 30)
    private String password;

    @ApiModelProperty("验证码id (仅供账号登录使用)")
    private String authCodeId;

    @ApiModelProperty("验证码 (仅供账号登录使用)")
    private String authCode;

    @ApiModelProperty("验证码类型")
    private LoginType loginType;
}
